
@import './variable.less';

* {
  padding: 0;
  margin: 0;
  font-family: "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}
.main-content {
  height: 100vh;
  background: #f5f5f5;
  overflow: auto;
}

.list-content{
  padding-top: 46px;
}

// 复写累加器
.van-stepper__minus::after, .van-stepper__minus::before,
.van-stepper__plus::after, .van-stepper__plus::before{
  background-color: @col-the;
}
.van-stepper__minus--disabled::after, .van-stepper__minus--disabled::before{
  background-color: #c8c9cc;
}

.product-edit__upload{
  position: relative;
  width: 40%;
  margin: 10px auto;
  height: 100px;
  line-height: 100px;
  border: 3px dashed #dddddd;
  border-radius: 10px;
  text-align: center;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  .iconfont{
    font-size: 60px;
    color: #999;
  }
  input{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    opacity: 0;
    z-index: 9;
  }
  .product-edit__upload__clear{
    position: absolute;
    top: 5px;
    right: 5px;
    line-height: 0;
    z-index: 10;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #f00;
    i{
      color: #fff;
      position: relative;
      top: 3px;
    }
  }
}

// 订单状态字体颜色
.order-info__item__status__unpay {
  color: #f3c634;
}
.order-info__item__status__wait {
  color: @col-yellow;
}
.order-info__item__status__cancel {
  color: #4e4e4e;
}
.order-info__item__status__finish {
  color: #979797;
}
.order-info__item__status__sending {
  color: @col-the;
}

.product__price{
  padding: 10px;
  input{
    text-align: center;
  }
}

.bottom-container{
  position: absolute;
  top: 0;
  width: 100%;
  bottom: 46px;
  overflow: auto;
}

.bottom-btn{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}
.bottom-btn > button{
  width: 100%;
}

.loading-container{
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  // background: #ffffff;
}
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 15px;
  margin: 0 auto;
}

.loading span {
  display: inline-block;
  width: 15px;
  height: 100%;
  margin-right: 5px;
  border-radius: 50%;
  background: @col-the;
  animation: load 0.8s ease infinite;
}

.loading span:last-child {
  margin-right: 0px;
}

@keyframes load {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.loading span:nth-child(1) {
  animation-delay: 0.07s;
}

.loading span:nth-child(2) {
  animation-delay: 0.19;
}

.loading span:nth-child(3) {
  animation-delay: 0.31;
}

.loading span:nth-child(4) {
  animation-delay: 0.43;
}

.loading span:nth-child(5) {
  animation-delay: 0.55s;
}

.fold-enter,
.fold-leave-active {
  transform: translateY(100%);
}

.fold-enter-active,
.fold-leave-active {
  transition: 0.4s all;
}

.picker-control__bar{
  display: flex;
  height: 44px;
  line-height: 44px;
  padding: 0 10px;
  justify-content: space-between;
  border-bottom: 1px solid #ebedf0;
  font-size: 14px;
  .picker-control__bar__confirm{
    color: @col-the;
  }
  .picker-control__bar__cancel, .picker-control__bar__tit{
    color: #666;
  }
}

.picker-mask{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.2);
}

.popup-bar{
  display: flex;
  justify-content: space-between;
  height: 45px;
  line-height: 45px;
  .popup-bar__confirm, .popup-bar__cancel{
    padding: 0 10px;
    color: @col-the;
    font-size: 14px;
  }
  .popup-bar__confirm:active, .popup-bar__cancel:active{
    background-color: #f2f3f5;
  }
}

/*******************水桶管理水款管理公用  *********************/
.bucket-mgr {
  padding-top: 10px;

  .bucket-mgr__item {
    margin: 0 10px 10px 10px;
    padding: 15px 15px 5px 15px;
    font-size: 14px;
    color: #666666;
    background-color: #ffffff;
    border-radius: 8px;

    .bucket-mgr__item__num {
      padding-bottom: 5px;
      color: @col-the;
      font-size: 12px;
    }

    .bucket-mgr__item__row {
      position: relative;
      display: flex;
      align-items: center;
      // justify-content: space-between;
      padding: 5px 0;
      font-size: 12px;


      .bucket-mgr__item__row__el_tit {
        color: #999;
      }

      .bucket-mgr__item__row__el_info {
        color: #333;
      }
      .bucket-mgr__item__row__el_more{
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
      }

      &.bucket-mgr__item__row_control {
        position: relative;
        padding-top: 5px;
        justify-content: flex-end;

        button {
          font-size: 12px;
        }
        .bucket-mgr__item__row__choose{
          position: absolute;
          left: 0;
          display: flex;
          i{
            font-size: 18px;
          }
          .bucket-mgr__item__row__choose__text{
            margin-left: 2px;
            font-size: 12px;
          }
        }
      }
    }
    .bucket-mgr__back{
      padding: 5px 0;
      .bucket-mgr__back__item{
        display: flex;
        justify-content: space-between;
        padding: 2px 0;
        .bucket-mgr__back__item__el{
          font-size: 12px;
          &.bucket-mgr__back__item__el_tit{
            margin-bottom: 3px;
          }
          &.bucket-mgr__back__item__el_name{
            flex: 0 0 50%;
          }
        }
      }
    }
    
  }
}

/*******************水桶管理水款管理公用  *********************/


/******************************* 财务管理公用  ****************************/
.finance-container{
  padding: 10px;
}

.finance-content{
  margin-top: 10px;
  background: #fff;
  border-radius: 5px;
  .finance-content__tit{
    display: flex;
    align-items: center;
    padding: 0 0 0 10px;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    border-bottom: 1px solid @col-bb;
    color: #333;
    i{
      font-size: 18px;
      margin-right: 5px;
    }
  }
  .finance-content__grid{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    .finance-content__grid__item{
      width: calc(calc(100% / 3) - 2px);
      text-align: center;
      padding: 10px 0;
      border-bottom: 1px solid @col-bb;
      border-right: 1px solid @col-bb;

      &:nth-child(3n) {
        border-right: unset;
      }
      .finance-content__grid__item__val{
        margin-bottom: 5px;
        color: #333;
        .unit{
          font-size: 10px;
        }
      }
      .finance-content__grid__item__tit{
        font-size: 12px;
        color: @col-the;
      }
    }

  }
  
}
.tab-tr{
  display: flex;
  font-size: 14px;
  &.tab-header{
    font-weight: bold;
    color: #333;
  }
  .tab-td{
    flex: 1;
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
    &.tab-td__50{
      flex: 0 0 50%;
    }
    &.tab-td__30{
      flex: 0 0 30%;
    }
    &.tab-td__20{
      flex: 0 0 20%;
    }
    &.tab-td__10{
      flex: 0 0 10%;
    }
  }
}